#pragma once
//#include "c:\users\amos\documents\visual studio 2012\projects\pccontrol\server\encapsulation\datamanage.h"
#include "encapsulation.h"
#include "PerIoData.h"

//#define TYPE_COMMAND	0x0001
//#define TYPE_DATA		0x0002
//
//#define ALL_CLIENT			0x0010
//#define SPECIFIC_CLIENT		0x0020
//#define ONE_CLIENT			0x0040
//#define SPECIFIC_PROCESS	0x0080
//
//#define REQUEST_PROCESS		0x00000001L
//#define REQUEST_SYSINFO		0x00000002L  
//#define RESPOND_PROCESS		0x00000010L
//
//
//#define REQUEST_RESTART		0x00000020L
//#define REQUEST_SHUTDOWN	0x00000040L
//
//#define REQUEST_INJECT		0x00000080L
//#define REQUEST_UNINJECT	0x00000100L
//
//typedef struct tagPackageHead
//{
//	int nType;
//	DWORD dwCommand;
//	DWORD dwSize;
//
//}PackageHead, *PPackageHead;

class CServerDataManage :
	public DataManage
{
public:
	CServerDataManage(void);
	~CServerDataManage(void);

	virtual void afterRecvData(const BaseSocket * const, const PerIoData * const);
	virtual void afterAcceSock(const BaseSocket &);

private:
	DWORD m_dwLastCommand;
};

static DWORD g_dwLastCommand = 0;
